#!/usr/bin/env ruby

stats_name = 'eid.fail: 001'

while (line = $stdin.gets)
  case line
  when /^package uploaded to \S+cgz$/
    stats_name = 'tcase.pass: 001'
    break
  when /^empty PACKAGE_LIST for .*$/
    stats_name = 'tcase.skip: 001'
    break
  end
end

puts stats_name
